<template>
  <div id="not-found-container">
    <div class="inner-container">
      <div class="title-content">
        <h1>404</h1>
        <h2>您所访问的页面不存在，或者已被绑架!</h2>
        <p>
          您可以回到<router-link to="/"><a href="javascript:void(0)"> 首页</a></router-link>
        </p>
      </div>
      <div class="img-content">
        <img :src="imgPath" alt="">
      </div>
    </div>
  </div>
</template>

<script>
import common from '../common/common';
export default {
  name: 'NotFoundComponent',
  data () {
    return {
      imgPath: `${common.imagePath}/img/404.png`
    };
  },
  methods: {
    backHome () {
      this.$router.push({ path: '/' });
    }
  }
};
</script>

<style scoped>
  #not-found-container {
    width:100%;height: 100%;
    padding: 0px;
    overflow: hidden;
    display: flex;
    -webkit-display: flex;
    align-items: center;
    -webkit-align-items: center;
  }
  #not-found-container .inner-container{
    width:100%;height: auto;
    padding: 0px;
    overflow: hidden;
  }
  #not-found-container .title-content {
    text-align: center;
    color: #686868;
  }
  #not-found-container .title-content h1{
    font-size: 60px;
    margin-top: 20px;
  }
  #not-found-container .title-content p{
    margin-top: 20px;
  }
  #not-found-container .title-content h2{
    font-size: 18px;
    font-weight: 400;
    margin-top: 20px;
  }
  #not-found-container .img-content img{
    max-width: 100%;
    margin-top: 20px;
  }
  /* @import url('../assets/404.css'); */
</style>
